<template>
    <div>
        <MyHead title="忘记密码" :show="true"></MyHead>
        <van-form @submit="onSubmit">
    <van-field
      v-model="register.phone"
      name="phone"
      label="手机号"
      placeholder="手机号"
      :rules="[{ required: true, message: '请填写手机号' }]"
    />
    <van-field
      v-model="register.username"
      name="username"
      label="用户名"
      placeholder="用户名"
      :rules="[{ required: true, message: '请填写用户名' }]"
    />
    <van-field
      v-model="register.password"
      type="password"
      name="password"
      label="登录密码"
      placeholder="登录密码"
      :rules="[{ required: true, message: '请填写密码' }]"
    />
    <van-field
      v-model="register.dbpass"
      type="password"
      name="dbpass"
      label="确认登录密码"
      placeholder="确认登录密码"
      :rules="[{ required: true, message: '请再次填写密码' }]"
    />
    <van-checkbox v-model="register.agree">请勾选同意用户协议</van-checkbox>
    <div style="margin: 16px">
      <van-button round block type="info" native-type="submit"
        >注册</van-button
      >
    </div>
  </van-form>
    </div>
</template>

<script>
export default {
    name:'register',
    data(){
        return{
            register:{}
        }
    },
    methods:{
        onSubmit(){

        }
    }
}
</script>